﻿namespace ConsoleApp.DesignPatterns;

// 定义主题
public interface ISubject
{
    void RegisterObserver(IObserver observer);  
    void UnregisterObserver(IObserver observer);  
    void NotifyObservers();  
}